# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-dns-resolver-programmable
_pkgname=Net-DNS-Resolver-Programmable
pkgver=0.009
pkgrel=2
pkgdesc="Programmable DNS resolver perl class for offline emulation of DNS"
url="https://metacpan.org/pod/Net::DNS::Resolver::Programmable"
arch="noarch"
license="Perl Artistic"
depends="perl perl-net-dns"
makedepends="perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \) -delete
}

sha512sums="a9a239ff454ba186e2a00e578615d6b25075f4e1fde548893681c169d04571c1621b023ecd2ccbb95a8fff50d8b811c410212db31a1b78f2d62977a45e90a735  Net-DNS-Resolver-Programmable-0.009.tar.gz"
